package com.belf.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * MigrateConfig
 *
 * @author l
 * @since 2024/7/12 10:12
 */

@Component
public class MigrateConfig {

    /** 项目名称 */
    @Value("${migrate.httpHost}")
    private String httpHost;

    @Value("${migrate.testConnect}")
    private String testConnect;
    @Value("${migrate.queryDatabase}")
    private String queryDatabase;
    @Value("${migrate.queryTables}")
    private String queryTables;
    @Value("${migrate.queryObjects}")
    private String queryObjects;
    @Value("${migrate.pushJob}")
    private String pushJob;

    public String getHttpHost() {
        return this.httpHost;
    }

    /*public String getTestConnect() {
        return testConnect;
    }*/

    public void setTestConnect(String testConnect) {
        this.testConnect = testConnect;
    }

   /* public String getQueryDatabase() {
        return queryDatabase;
    }*/

    public void setQueryDatabase(String queryDatabase) {
        this.queryDatabase = queryDatabase;
    }

  /*  public String getQueryTables() {
        return queryTables;
    }*/

    public void setQueryTables(String queryTables) {
        this.queryTables = queryTables;
    }

  /*  public String getQueryObjects() {
        return queryObjects;
    }*/

    public void setQueryObjects(String queryObjects) {
        this.queryObjects = queryObjects;
    }

 /*   public String getPushJob() {
        return pushJob;
    }*/

    public void setPushJob(String pushJob) {
        this.pushJob = pushJob;
    }



    public void setHttpHost(String httpHost) {
        this.httpHost = httpHost;
    }

    public String getTestConnect() {
        return this.httpHost+"/connector/testConnect";
    }

    public String getQueryDatabase() {

        return this.httpHost+"/sql/listDatabase";
    }

    public String getQueryTables() {
        return this.httpHost+"/sql/listTables";
    }

    public String getQueryObjects() {
        return this.httpHost+"/sql/listObjects";
    }

    public String getQueryColumns() {
        return this.httpHost+"/sql/listColumns";
    }

    public String getDbColumns() {
        return this.httpHost+"/sql/listDbColumns";
    }

    public String getPushJob() {
        return this.httpHost+"/job/submit";
    }

    public String executeSql() {

        return this.httpHost+"/sql/executeSql";
    }
    public String convertSql() {

        return this.httpHost+"/sql/convertSql";
    }
    public String verify() {

        return this.httpHost+"/sql/verify";
    }
    public String listDatabaseAndSchema() {

        return this.httpHost+"/sql/listDatabaseAndSchema";
    }
    public String jobStop() {

        return this.httpHost+"/job/stop";
    }
    public String jobList() {

        return this.httpHost+"/job/list";
    }
    public String configDbTypes() {

        return this.httpHost+"/config/dbtypes";
    }



}
